package Properties;

import java.util.Properties;
import java.util.Set;

public class demo1 {
    public static void main(String[] args) {
        Properties properties = new Properties();
        System.out.println(properties.setProperty("你好啊", "是的")); // null
        System.out.println(properties.get("你好啊")); // 是啊
        Set<String> strings = properties.stringPropertyNames(); // 返回一个set
        strings.forEach(item-> System.out.println(item));
    }
}
